package ch.usi.inf.pf2.gui.listener;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import ch.usi.inf.pf2.gui.JSpreadSheetGUI;

/**
 * Listener for the menu and button "New"
 * 
 * @author Lorenzo Baracchi, Ebrisa Savina Mastrodicasa
 * 
 */
public class NewActionListener implements ActionListener
{
    private JSpreadSheetGUI spreadTable;

    public NewActionListener(JSpreadSheetGUI spreadTable)
    {
	   super();
	   this.spreadTable = spreadTable;
    }

    @Override
    public void actionPerformed(ActionEvent arg0)
    {
	   spreadTable = new JSpreadSheetGUI();
    }

}
